<%--
  Created by IntelliJ IDEA.
  User: wangchangyong
  Date: 2020/4/16
  Time: 11:33
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>首页</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/resources/css/resume.css"/>
</head>
<body>

<table class="lp-content">
    <tr>
        <th><a href="/resume/addPage" class="normalBtn">新增</a></th>
    </tr>
    <tr>
        <th>ID</th>
        <th>地址</th>
        <th>名称</th>
        <th>手机号</th>
        <th>操作</th>
    </tr>
    <c:if test="${empty content}">
        <tr>
            <td colspan="5" style="text-align: center">
                没有任何数据
            </td>
        </tr>
    </c:if>
    <c:if test="${!empty content}">
        <c:forEach items="${content}" var="resume">
            <tr>
                <td>${resume.id}</td>
                <td>${resume.address}</td>
                <td>${resume.name}</td>
                <td>${resume.phone}</td>
                <td><a href="resume/updatePage/${resume.id}">编辑</a> | <a href="resume/delete/${resume.id}">删除</a></td>
            </tr>
        </c:forEach>
    </c:if>
</table>

</body>
</html>
